package com.sc.smartcommunity.domain;

import com.baomidou.mybatisplus.annotation.*;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 缴费记录
 * @author Chenke Zhao
 * @date 2025/9/10 20:44
 * @description PaymentRecord
 */
@TableName("payment_record")
public class PaymentRecord {

    @TableId(type = IdType.AUTO)
    private Long id;   // 主键ID

    private Integer feeType;    // 费用类型（水费、电费、物业费等）

    private BigDecimal amount; // 缴费金额

    private Integer status;    // 缴费状态(1=交易成功,2=交易失败,3=逾期)

    private String phone;       // 缴费用户手机号

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime payTime; // 缴费时间

    public PaymentRecord() {
    }

    public PaymentRecord(Long id, int feeType, BigDecimal amount, Integer status, String phone, LocalDateTime payTime) {
        this.id = id;
        this.feeType = feeType;
        this.amount = amount;
        this.status = status;
        this.phone = phone;
        this.payTime = payTime;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getFeeType() {
        return feeType;
    }

    public void setFeeType(int feeType) {
        this.feeType = feeType;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public LocalDateTime getPayTime() {
        return payTime;
    }

    public void setPayTime(LocalDateTime payTime) {
        this.payTime = payTime;
    }
}
